// 路由导航
import {Navigation} from 'react-native-navigation';

import Login from '../screen/Login';
import My from '../screen/My';
import GoRun from '../screen/GoRun';
import GoStore from '../screen/GoStore';
import GoHealth from '../screen/GoHealth';
import GoCircle from '../screen/GoCircle';
import Introduction from '../screen/Introduction';
import InputAuthCode from '../screen/InputAuthCode';

// 注册
Navigation.registerComponent('Login', () => Login);
Navigation.registerComponent('My', () => My);
Navigation.registerComponent('GoRun', () => GoRun);
Navigation.registerComponent('GoStore', () => GoStore);
Navigation.registerComponent('GoHealth', () => GoHealth);
Navigation.registerComponent('GoCircle', () => GoCircle);
Navigation.registerComponent('Introduction', () => Introduction);
Navigation.registerComponent('InputAuthCode', () => InputAuthCode);

// 配置导航
export const WelcomeScreen = {
  root: {
    stack: {
      id: 'WELCOMESCREEN',
      children: [
        {
          component: {
            name: 'App',
          },
        },
      ],
    },
  },
};

export const LoginRoot = {
  root: {
    stack: {
      id: 'LOGIN_LAYOUT',
      children: [
        {
          component: {
            name: 'Login',
          },
        },
      ],
    },
  },
};
